package com.example.homework.db.apis

import com.example.homework.db.models.Episode
import com.example.homework.db.responses.EpisodesResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface EpisodesApi {
    @GET("episode/")
    suspend fun getAll(@Query("page") page: Int): EpisodesResponse

    @GET("episode/{id}")
    suspend fun getOne(@Path("id") id: Int): Episode
}